import React, { PropsWithChildren, useEffect } from 'react'
import css from './NodeDet.module.scss'
import CnodeDet from './componentList/CnodeDet'
/** 渲染判断函数 */
const renderFun = (currentKey: string) => {
  switch (currentKey) {
    case 'c':
      return <CnodeDet></CnodeDet>
    default:
      break
  }
}
export default function NodeDet({ currentKey }: PropsWithChildren<{ currentKey: string }>) {
  console.log(css)
  useEffect(() => {
    // renderFun(currentKey)
  }, [currentKey])

  return <div className={css.box}>{renderFun(currentKey)}</div>
}
